package com.example.interceptmybatis.controller;

import com.example.interceptmybatis.config.Result;
import com.example.interceptmybatis.entity.dto.PhoneValidateDto;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName PhoneController
 * @Description TODO
 * @Author 郭敖
 * @Date 2024年09月05日 22:08
 * @Version 1.0
 */
@RequestMapping("/phone")
@RestController
@Slf4j
public class PhoneController {

    @PostMapping("/save")
    public Result savePhone(@RequestBody @Valid PhoneValidateDto phoneValidateDto){
        System.out.println("savePhone");
        return Result.Success();
    }

    @GetMapping("/test")
    public Result test(){
        log.info("testDemo=========================>");
        return Result.Success();
    }
}
